package com.xy.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 *  员工表
 */
@Data
@NoArgsConstructor
public class Employee {
    private Integer id;//id
    private String lastName;//员工名字
    private String email;//邮箱
    private Integer gender;//性别 0：女  1：男
    //员工部门
    private Department department;
    //时间
    private Date date;

    public Employee(Integer id, String lastName, String email, Integer gender, Department department) {
        this.id = id;
        this.lastName = lastName;
        this.email = email;
        this.gender = gender;
        this.department = department;
        this.date = new Date();
    }
}
